#ifndef __MLINK_MQTT_HANDLE_H__
#define __MLINK_MQTT_HANDLE_H__

#include "mdf_common.h"
#include "mlink_json.h"
#include "mlink_utils.h"
#include "mlink_notice.h"
#include "mlink_httpd.h"
#include "mlink_handle.h"

#ifdef __cplusplus
extern "C" {
#endif /**< _cplusplus */

#define MDF_MLINK_PROTO_CUSTOM_MQTT (2)

void mqtt_set_url(const char * url);
const char * mqtt_get_url();

void mqtt_set_port(int port);
int mqtt_get_port();

void mqtt_set_username(const char * val);
const char * mqtt_get_username();

void mqtt_set_password(const char * val);
const char * mqtt_get_password();

mdf_err_t mqtt_save(void);
mdf_err_t mqtt_load(void);

mdf_err_t mlink_mqtt_init(void);

#ifdef __cplusplus
}
#endif /**< _cplusplus */

#endif /**< __MLINK_MQTT_HANDLE_H__ */

